package cn.powertime.evaluation.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "个人帖子对象")
public class RespPersonalPostingsListVo implements Serializable {

    @ApiModelProperty(value = "帖子ID", name = "id")
    private Long id;

    @ApiModelProperty(value = "帖子标题", name = "title", position = 1)
    private String title;

    @ApiModelProperty(value = "内容", name = "content", position = 2)
    private String content;

    @ApiModelProperty(value="图片集",name="imgs", position = 4)
    private List<String> imgs;

    @ApiModelProperty(value = "发表时间", name = "createDate", position = 5)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "评论数", name = "comments", position = 6)
    private Integer comments;

    @ApiModelProperty(value = "收藏数", name = "collects", position = 7)
    private Integer collects;

    @ApiModelProperty(value = "标签", name = "labels", position = 8)
    private String labels;

    @ApiModelProperty(value = "是否点赞", name = "isLike", position = 9)
    private Integer isLike;

    @ApiModelProperty(value = "点赞数", name = "likes", position = 10)
    private Integer likes;

    @ApiModelProperty(value = "用户ID", name = "userId", position = 11)
    private String userId;

    @ApiModelProperty(value = "用户昵称", name = "nickname", position = 12)
    private String nickname;

    @ApiModelProperty(value = "用户头像id", name = "avatar", position = 13)
    private Long avatar;

}
